<?php 
$id_fiche = $_GET["id_fiche"];
    $sqlm="select * from infos_production where id_fiche=$id_fiche";
    $resm = mysql_query($sqlm);
    $rm = @mysql_fetch_object($resm);
?>

<fieldset>
    <legend><?php echo TXT_INFO_PROD;?></legend>
    <table>
        <tr>
            <td><?php echo TXT_TITRE_PROD;?></td> <td><input type="text" name="titre_prod" value="<?php echo"$rm->titre";?>"></td>
            
        </tr>
         <tr>
            <td><?php echo TXT_NUM_CAMP;?></td> <td><select name="num_camp">
                    <option value="0"></option>
                    <?php $i=1;
                        while($i <=20){
                    ?>
                    <option value="<?php echo $i;?>" <?php if($rm->num_camp==$i) echo"selected";?>><?php echo $i?></option>
                    <?php $i++;}?>
                </select></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_THEME_TRAIT;?></td> <td>   <select name="type_theme">
                    <option value="0"></option>
              
                <?php
                $sql="select * from type_themes";
                $res = mysql_query($sql);
                while($r = mysql_fetch_object($res)){
            ?>
                    <option value="<?php echo $r->id;?>" <?php if($rm->theme==$r->id) echo"selected";?>><?php echo $r->descr;?></option>
                    <?php }?>
                </select> &nbsp;&nbsp; <?php echo TXT_AUTRES;?><input type="text" name="autres"></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_DATE_DIFF;?></td> <td><input type="text" name="date_deb" id="date_deb" value="<?php echo $rm->date_dif;?>"></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_REDIF;?></td> <td><input type="text" name="date_fin" id="date_fin" value="<?php echo"$rm->date_redif";?>"></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_NUM_REDIF;?></td> <td><select name="num_redif">
                    <option></option>
                    <?php $i=1;
                        while($i <=10){
                    ?>
                    <option value="<?php echo $i;?>" <?php if($rm->nbre_redif==$i) echo"selected";?>><?php echo $i?></option>
                    <?php $i++;}?>
                </select></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_DUREE_PROD;?></td> <td><select name="duree_prod">
                    <option></option>
                    <?php $i=15;
                        while($i <=45){
                    ?>
                    <option value="<?php echo $i;?>" <?php if($rm->duree_prod==$i) echo"selected";?>><?php echo $i?></option>
                    <?php $i++;}?>
                </select></td>
            
        </tr>
        <tr>
            <td><?php echo TXT_LANG_PROD;?></td> <td><select name="langue_prod">
                    <option></option>
                    <?php $sql="select * from langues order by descr";
                        $res =  mysql_query($sql);
                        while($r = mysql_fetch_object($res)){
                    ?>
                    <option value="<?php echo $r->id;?>" <?php if($rm->langue_prod==$r->id) echo"selected";?>><?php echo $r->descr;?></option>
                    <?php }?>
                </select><?php echo TXT_AUTRES; ?><input type="text" name="autres"></td>
            
        </tr>
      
        <tr>
            <td><?php echo TXT_RES_CONT;?></td><td><textarea name="resume_cont" cols="35" rows="5"><?php echo $rm->resume_prod;?></textarea> </td>
            
        </tr>
        
    </table>
    
</fieldset>
        